```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Linux系统完全指南</title>
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', 'Noto Serif SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #333;
            background-color: #f9fafb;
            line-height: 1.6;
        }
        .hero {
            background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
            color: white;
        }
        .card {
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        }
        .step-icon {
            background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
        }
        .section-divider {
            position: relative;
            height: 80px;
            overflow: hidden;
            background-color: white;
        }
        .section-divider::before {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            height: 100%;
            background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
            transform: skewY(-2deg);
            transform-origin: top left;
        }
        .drop-cap:first-letter {
            float: left;
            font-size: 4.5em;
            line-height: 0.8;
            margin: 0.1em 0.1em 0.1em 0;
            color: #3b82f6;
            font-weight: 700;
        }
        .code-block {
            background-color: #1e293b;
            color: #e2e8f0;
            border-radius: 0.375rem;
            padding: 1rem;
            font-family: 'Courier New', Courier, monospace;
            overflow-x: auto;
        }
        .nav-item {
            position: relative;
        }
        .nav-item::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #3b82f6;
            transition: width 0.3s ease;
        }
        .nav-item:hover::after {
            width: 100%;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero min-h-screen flex items-center">
        <div class="container mx-auto px-6 py-20 text-center">
            <h1 class="text-5xl md:text-6xl font-bold mb-6">Linux系统完全指南</h1>
            <p class="text-xl md:text-2xl mb-8 max-w-3xl mx-auto">从基础到实战，掌握服务器操作系统的精髓</p>
            <div class="flex justify-center space-x-4">
                <a href="#introduction" class="bg-white text-blue-600 hover:bg-gray-100 px-6 py-3 rounded-lg font-medium transition duration-300">开始学习</a>
                <a href="#installation" class="border-2 border-white text-white hover:bg-white hover:text-blue-600 px-6 py-3 rounded-lg font-medium transition duration-300">安装指南</a>
            </div>
            <div class="mt-16">
                <i class="fas fa-chevron-down text-3xl animate-bounce text-white opacity-70"></i>
            </div>
        </div>
    </section>

    <!-- Navigation -->
    <nav class="bg-white shadow-md sticky top-0 z-10">
        <div class="container mx-auto px-6 py-3 flex justify-between items-center">
            <a href="#" class="text-2xl font-bold text-blue-600">Linux指南</a>
            <div class="hidden md:flex space-x-8">
                <a href="#introduction" class="nav-item text-gray-700 hover:text-blue-600">简介</a>
                <a href="#installation" class="nav-item text-gray-700 hover:text-blue-600">安装</a>
                <a href="#commands" class="nav-item text-gray-700 hover:text-blue-600">命令</a>
                <a href="#permissions" class="nav-item text-gray-700 hover:text-blue-600">权限</a>
                <a href="#deployment" class="nav-item text-gray-700 hover:text-blue-600">部署</a>
            </div>
            <button class="md:hidden">
                <i class="fas fa-bars text-gray-700 text-xl"></i>
            </button>
        </div>
    </nav>

    <!-- Introduction Section -->
    <section id="introduction" class="py-20 bg-white">
        <div class="container mx-auto px-6">
            <div class="text-center mb-16">
                <h2 class="text-4xl font-bold mb-4 text-gray-800">Linux系统介绍</h2>
                <div class="w-20 h-1 bg-blue-600 mx-auto"></div>
            </div>
            
            <div class="grid md:grid-cols-2 gap-12 items-center mb-20">
                <div>
                    <h3 class="text-2xl font-semibold mb-4 text-gray-800">什么是Linux？</h3>
                    <p class="drop-cap text-gray-700 mb-6">Linux，全称GNU/Linux，是一套免费使用和自由传播的类Unix操作系统，是一个基于POSIX的多用户、多任务、支持多线程和多CPU的操作系统。伴随着互联网的发展，Linux得到了来自全世界软件爱好者、组织、公司的支持。</p>
                    <p class="text-gray-700 mb-6">Linux不仅系统性能稳定，而且是开源软件。其核心防火墙组件性能高效、配置简单，保证了系统的安全。在很多企业网络中，为了追求速度和安全，Linux不仅仅是被网络运维人员当作服务器使用，甚至当作网络防火墙。</p>
                    <div class="bg-blue-50 border-l-4 border-blue-500 p-4 mb-6">
                        <p class="text-blue-700"><i class="fas fa-info-circle mr-2"></i>Linux具有开放源码、没有版权、技术社区用户多等特点，开放源码使得用户可以自由裁剪，灵活性高，功能强大，成本低。</p>
                    </div>
                </div>
                <div class="flex justify-center">
                    <img src="https://cdn.nlark.com/yuque/0/2022/png/21449790/1654430157755-d0436fc3-5ffb-413a-9da4-4c0eaa94237a.png" alt="Linus Torvalds 和 Linux" class="rounded-lg shadow-xl max-w-full h-auto">
                </div>
            </div>
            
            <div class="mb-20">
                <h3 class="text-2xl font-semibold mb-6 text-gray-800">Linux发展历史</h3>
                <div class="relative">
                    <div class="absolute left-5 h-full w-0.5 bg-blue-200"></div>
                    <div class="space-y-8">
                        <div class="relative pl-12">
                            <div class="absolute left-0 w-10 h-10 rounded-full step-icon flex items-center justify-center text-white">
                                <i class="fas fa-history"></i>
                            </div>
                            <h4 class="text-xl font-medium mb-2 text-gray-800">Minix时代</h4>
                            <p class="text-gray-700">在Linux操作系统出现之前，有一个操作系统叫做Minix，由Andrew的大学教授研发出来用于教学和研究。2000年，Andrew将Minix操作系统完全对外开源。</p>
                        </div>
                        <div class="relative pl-12">
                            <div class="absolute left-0 w-10 h-10 rounded-full step-icon flex items-center justify-center text-white">
                                <i class="fas fa-user-graduate"></i>
                            </div>
                            <h4 class="text-xl font-medium mb-2 text-gray-800">Linux诞生</h4>
                            <p class="text-gray-700">芬兰大学生Linus在Minix操作系统基础上，添加了一些补丁和插件，并将其命名为Linux操作系统，完全对外开源并开始维护。Git也是Linus的杰作。</p>
                        </div>
                        <div class="relative pl-12">
                            <div class="absolute left-0 w-10 h-10 rounded-full step-icon flex items-center justify-center text-white">
                                <i class="fas fa-globe"></i>
                            </div>
                            <h4 class="text-xl font-medium mb-2 text-gray-800">全球发展</h4>
                            <p class="text-gray-700">随着互联网的发展，Linux获得了全球开发者社区的支持，成为服务器领域的主流操作系统，并在个人电脑和嵌入式系统中也有广泛应用。</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <div>
                <h3 class="text-2xl font-semibold mb-6 text-gray-800">Linux vs Windows</h3>
                <div class="grid md:grid-cols-2 gap-8">
                    <div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
                        <div class="flex items-center mb-4">
                            <div class="bg-blue-100 p-3 rounded-full mr-4">
                                <i class="fas fa-penguin text-blue-600 text-xl"></i>
                            </div>
                            <h4 class="text-xl font-medium text-gray-800">Linux特点</h4>
                        </div>
                        <ul class="space-y-2">
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>严格区分大小写</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>文件没有强制后缀名</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>Windows软件无法直接运行</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>开源免费，高度可定制</span>
                            </li>
                        </ul>
                    </div>
                    <div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
                        <div class="flex items-center mb-4">
                            <div class="bg-blue-100 p-3 rounded-full mr-4">
                                <i class="fab fa-windows text-blue-600 text-xl"></i>
                            </div>
                            <h4 class="text-xl font-medium text-gray-800">Windows特点</h4>
                        </div>
                        <ul class="space-y-2">
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>不区分大小写</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>依赖文件后缀名</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>丰富的GUI应用生态</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
                                <span>商业软件，用户友好</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Divider -->
    <div class="section-divider"></div>

    <!-- Installation Section -->
    <section id="installation" class="py-20 bg-gray-50">
        <div class="container mx-auto px-6">
            <div class="text-center mb-16">
                <h2 class="text-4xl font-bold mb-4 text-gray-800">Linux安装指南</h2>
                <div class="w-20 h-1 bg-blue-600 mx-auto"></div>
            </div>
            
            <div class="grid md:grid-cols-3 gap-8 mb-12">
                <div class="card bg-white p-6 rounded-lg shadow-sm">
                    <div class="text-blue-600 text-3xl mb-4">
                        <i class="fas fa-download"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">1. 下载镜像</h3>
                    <p class="text-gray-600 mb-4">获取CentOS 7镜像文件，推荐使用清华镜像源：</p>
                    <div class="code-block text-sm mb-4">
                        http://mirrors.163.com/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1908.iso
                    </div>
                </div>
                <div class="card bg-white p-6 rounded-lg shadow-sm">
                    <div class="text-blue-600 text-3xl mb-4">
                        <i class="fas fa-box-open"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">2. 安装VMware</h3>
                    <p class="text-gray-600 mb-4">下载并安装VMware Workstation，按照向导完成安装。</p>
                    <a href="https://www.vmware.com/go/getworkstation-win" class="text-blue-600 hover:text-blue-800 font-medium">下载VMware</a>
                </div>
                <div class="card bg-white p-6 rounded-lg shadow-sm">
                    <div class="text-blue-600 text-3xl mb-4">
                        <i class="fas fa-terminal"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">3. 安装Xshell</h3>
                    <p class="text-gray-600 mb-4">安装Xshell用于远程连接Linux系统。</p>
                    <a href="https://download.mobatek.net/2012020021813110/MobaXterm_Portable_v20.1.zip" class="text-blue-600 hover:text-blue-800 font-medium">下载Xshell</a>
                </div>
            </div>
            
            <div class="mb-12">
                <h3 class="text-2xl font-semibold mb-6 text-gray-800">虚拟机设置步骤</h3>
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <h4 class="text-xl font-medium mb-4 text-gray-800">1. 检查虚拟化支持</h4>
                        <p class="text-gray-700 mb-4">在BIOS中启用虚拟化技术(VT-x或AMD-V)，这是运行虚拟机的必要条件。</p>
                        <div class="bg-gray-100 p-4 rounded-lg mb-4">
                            <img src="https://cdn.nlark.com/yuque/0/2022/png/21449790/1654430158722-fd897a8a-c82d-4c12-9280-492a6eea68ad.png" alt="检查虚拟化支持" class="rounded-lg shadow">
                        </div>
                    </div>
                    <div>
                        <h4 class="text-xl font-medium mb-4 text-gray-800">2. 创建虚拟机</h4>
                        <p class="text-gray-700 mb-4">在VMware中新建虚拟机，选择下载的CentOS镜像文件。</p>
                        <div class="bg-gray-100 p-4 rounded-lg">
                            <img src="https://cdn.nlark.com/yuque/0/2022/png/21449790/1654430159320-5200e743-638e-42e3-af37-53bc97904393.png" alt="创建虚拟机" class="rounded-lg shadow">
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="mb-12">
                <h3 class="text-2xl font-semibold mb-6 text-gray-800">Linux网络配置</h3>
                <div class="grid md:grid-cols-3 gap-6">
                    <div class="bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-semibold mb-3 text-gray-800">桥接模式</h4>
                        <p class="text-gray-600 mb-4">和主机共用一个网段，同一个网络中的机器都可以访问虚拟机。</p>
                        <div class="bg-gray-100 p-3 rounded-lg">
                            <img src="https://cdn.nlark.com/yuque/0/2022/png/21449790/1654430174484-7e7ed3cb-d1af-4c3a-8286-a25643445758.png" alt="桥接模式" class="rounded">
                        </div>
                    </div>
                    <div class="bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-semibold mb-3 text-gray-800">NAT模式</h4>
                        <p class="text-gray-600 mb-4">主机和虚拟机形成独立局域网，只能主机访问虚拟机。</p>
                        <div class="bg-gray-100 p-3 rounded-lg">
                            <img src="https://cdn.nlark.com/yuque/0/2022/png/21449790/1654430175024-f9686873-b1fa-4dff-b696-8bb82c5813db.png" alt="NAT模式" class="rounded">
                        </div>
                    </div>
                    <div class="bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-semibold mb-3 text-gray-800">仅主机模式</h4>
                        <p class="text-gray-600 mb-4">和NAT类似，但虚拟机不能访问外部网络。</p>
                        <div class="bg-gray-100 p-3 rounded-lg">
                            <img src="https://cdn.nlark.com/yuque/0/2022/png/21449790/1654430175582-09714758-acd3-48b6-96ec-0c63ccc4b528.png" alt="仅主机模式" class="rounded">
                        </div>
                    </div>
                </div>
            </div>
            
            <div>
                <h3 class="text-2xl font-semibold mb-4 text-gray-800">设置静态IP</h3>
                <div class="bg-white p-6 rounded-lg shadow-sm">
                    <div class="grid md:grid-cols-2 gap-8">
                        <div>
                            <h4 class="text-lg font-medium mb-3 text-gray-800">1. 修改网卡配置</h4>
                            <p class="text-gray-600 mb-4">编辑网络配置文件设置静态IP地址：</p>
                            <div class="code-block mb-4">
                                vi /etc/sysconfig/network-scripts/ifcfg-ens33
                            </div>
                            <p class="text-gray-600 mb-2">修改以下参数：</p>
                            <div class="code-block">
                                BOOTPROTO="static"<br>
                                ONBOOT="yes"<br>
                                IPADDR=192.168.1.100<br>
                                NETMASK=255.255.255.0<br>
                                GATEWAY=192.168.1.1<br>
                                DNS1=192.168.1.1
                            </div>
                        </div>
                        <div>
                            <h4 class="text-lg font-medium mb-3 text-gray-800">2. 重启网络服务</h4>
                            <p class="text-gray-600 mb-4">应用新的网络配置：</p>
                            <div class="code-block mb-6">
                                systemctl restart network
                            </div>
                            <h4 class="text-lg font-medium mb-3 text-gray-800">3. 验证配置</h4>
                            <p class="text-gray-600 mb-2">检查IP地址是否生效：</p>
                            <div class="code-block">
                                ip a
                            </div>
                            <div class="mt-4 bg-gray-100 p-3 rounded-lg">
                                <img src="https://cdn.nlark.com/yuque/0/2022/png/21449790/1654430178164-fca2731d-5df0-4dbf-85b8-84e2d00eff46.png" alt="静态IP配置" class="rounded">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Divider -->
    <div class="section-divider"></div>

    <!-- Commands Section -->
    <section id="commands" class="py-20 bg-white">
        <div class="container mx-auto px-6">
            <div class="text-center mb-16">
                <h2 class="text-4xl font-bold mb-4 text-gray-800">Linux常用命令</h2>
                <div class="w-20 h-1 bg-blue-600 mx-auto"></div>
            </div>
            
            <div class="mb-12">
                <h3 class="text-2xl font-semibold mb-6 text-gray-800">基本操作命令</h3>
                <div class="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
                    <div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
                        <div class="text-blue-600 text-2xl mb-3">
                            <i class="fas fa-user"></i>
                        </div>
                        <h4 class="text-lg font-medium mb-2 text-gray-800">who am i</h4>
                        <p class="text-gray-600">显示当前登录用户信息</p>
                    </div>
                    <div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
                        <div class="text-blue-600 text-2xl mb-3">
                            <i class="fas fa-map-marker-alt"></i>
                        </div>
                        <h4 class="text-lg font-medium mb-2 text-gray-800">pwd</h4>
                        <p class="text-gray-600">显示当前工作目录</p>
                    </div>
                    <div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
                        <div class="text-blue-600 text-2xl mb-3">
                            <i class="fas fa-network-wired"></i>
                        </div>
                        <h4 class="text-lg font-medium mb-2 text-gray-800">ip a</h4>
                        <p class="text-gray-600">查看网络接口和IP地址</p>
                    </div>
                    <div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
                        <div class="text-blue-600 text-2xl mb-3">
                            <i class="fas fa-stop"></i>
                        </div>
                        <h4 class="text-lg font-medium mb-2 text-gray-800">Ctrl + C</h4>
                        <p class="text-gray-600">终止当前运行的命令</p>
                    </div>
                </div>
            </div>
            
            <div class="mb-12">
                <h3 class="text-2xl font-semibold mb-6 text-gray-800">目录操作命令</h3>
                <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">ls - 列出目录内容</h4>
                        <div class="code-block mb-3">
                            ls [-ald] [目录名]
                        </div>
                        <p class="text-gray-600 mb-2"><span class="font-medium">选项：</span></p>
                        <ul class="text-gray-600 text-sm space-y-1 mb-3">
                            <li>-a: 显示所有文件，包括隐藏文件</li>
                            <li>-l: 显示详细信息</li>
                            <li>-d: 仅查看目录本身</li>
                        </ul>
                        <div class="bg-gray-100 p-3 rounded-lg">
                            <img src="https://cdn.nlark.com/yuque/0/2022/png/21449790/1654430173100-879bb29b-b8d4-4bdc-ad3a-0ecb5eaecc25.png" alt="ls命令示例" class="rounded">
                        </div>
                    </div>
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">cd - 切换目录</h4>
                        <div class="code-block mb-3">
                            cd [路径|特殊符号]
                        </div>
                        <p class="text-gray-600 mb-2"><span class="font-medium">特殊符号：</span></p>
                        <ul class="text-gray-600 text-sm space-y-1">
                            <li>.: 当前目录</li>
                            <li>..: 上一级目录</li>
                            <li>/: 根目录</li>
                            <li>~: 当前用户HOME目录</li>
                        </ul>
                    </div>
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">mkdir - 创建目录</h4>
                        <div class="code-block mb-3">
                            mkdir [-p] 目录名
                        </div>
                        <p class="text-gray-600">-p: 递归创建多级目录</p>
                    </div>
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">rm - 删除目录/文件</h4>
                        <div class="code-block mb-3">
                            rm [-rf] 目录名
                        </div>
                        <p class="text-gray-600 mb-2"><span class="font-medium">选项：</span></p>
                        <ul class="text-gray-600 text-sm space-y-1">
                            <li>-r: 递归删除</li>
                            <li>-f: 强制删除，不提示</li>
                        </ul>
                        <p class="text-gray-600 text-sm mt-2">⚠️ 删除操作不可逆，谨慎使用</p>
                    </div>
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">cp - 复制目录/文件</h4>
                        <div class="code-block mb-3">
                            cp [-r] 来源 目标
                        </div>
                        <p class="text-gray-600">-r: 递归复制目录内容</p>
                    </div>
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">mv - 移动/重命名</h4>
                        <div class="code-block mb-3">
                            mv 原名称 新名称|路径
                        </div>
                        <p class="text-gray-600">根据第二个参数决定是重命名还是移动</p>
                    </div>
                </div>
            </div>
            
            <div class="mb-12">
                <h3 class="text-2xl font-semibold mb-6 text-gray-800">文件操作命令</h3>
                <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">touch - 创建文件</h4>
                        <div class="code-block mb-3">
                            touch 文件名1 文件名2...
                        </div>
                        <p class="text-gray-600">创建空白文件或多个文件</p>
                    </div>
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">vi/vim - 编辑文件</h4>
                        <div class="code-block mb-3">
                            vi 文件名
                        </div>
                        <p class="text-gray-600 mb-2"><span class="font-medium">常用操作：</span></p>
                        <ul class="text-gray-600 text-sm space-y-1">
                            <li>i/a/o: 进入编辑模式</li>
                            <li>ESC: 退出编辑模式</li>
                            <li>:wq: 保存并退出</li>
                            <li>:q!: 不保存退出</li>
                            <li>ZZ: 快速保存退出</li>
                        </ul>
                    </div>
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">cat - 查看文件</h4>
                        <div class="code-block mb-3">
                            cat [-n] 文件名
                        </div>
                        <p class="text-gray-600">-n: 显示行号</p>
                    </div>
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">more/less - 分页查看</h4>
                        <div class="code-block mb-3">
                            more 文件名<br>
                            less 文件名
                        </div>
                        <p class="text-gray-600">查看大文件时使用，支持翻页</p>
                    </div>
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">head/tail - 查看头尾</h4>
                        <div class="code-block mb-3">
                            head 文件名<br>
                            tail [-f] 文件名
                        </div>
                        <p class="text-gray-600">-f: 跟踪文件变化(常用于日志)</p>
                    </div>
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">grep - 文本搜索</h4>
                        <div class="code-block mb-3">
                            grep "搜索内容" 文件名
                        </div>
                        <p class="text-gray-600">在文件中搜索指定内容</p>
                    </div>
                </div>
            </div>
            
            <div>
                <h3 class="text-2xl font-semibold mb-6 text-gray-800">压缩包操作</h3>
                <div class="grid md:grid-cols-2 gap-8">
                    <div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
                        <h4 class="text-xl font-medium mb-4 text-gray-800">tar命令</h4>
                        <div class="code-block mb-3">
                            # 解压<br>
                            tar -zxvf 压缩包名 -C 目标目录<br><br>
                            # 打包<br>
                            tar -zcvf 压缩包名 文件1 文件2...
                        </div>
                        <p class="text-gray-600 mb-2"><span class="font-medium">选项说明：</span></p>
                        <ul class="text-gray-600 text-sm space-y-1">
                            <li>-z: 处理.gz压缩包</li>
                            <li>-x: 解压</li>
                            <li>-c: 打包</li>
                            <li>-v: 显示详细信息</li>
                            <li>-f: 指定文件名(必须放在最后)</li>
                            <li>-C: 指定解压目录</li>
                        </ul>
                    </div>
                    <div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
                        <h4 class="text-xl font-medium mb-4 text-gray-800">zip/unzip命令</h4>
                        <div class="code-block mb-3">
                            # 安装<br>
                            yum -y install zip unzip<br><br>
                            # 解压<br>
                            unzip 压缩包名<br><br>
                            # 打包<br>
                            zip 压缩包名 文件1 文件2...
                        </div>
                        <p class="text-gray-600">处理zip格式的压缩包</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Divider -->
    <div class="section-divider"></div>

    <!-- Permissions Section -->
    <section id="permissions" class="py-20 bg-gray-50">
        <div class="container mx-auto px-6">
            <div class="text-center mb-16">
                <h2 class="text-4xl font-bold mb-4 text-gray-800">用户与权限管理</h2>
                <div class="w-20 h-1 bg-blue-600 mx-auto"></div>
            </div>
            
            <div class="mb-12">
                <h3 class="text-2xl font-semibold mb-6 text-gray-800">用户管理</h3>
                <div class="grid md:grid-cols-3 gap-6">
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">useradd - 创建用户</h4>
                        <div class="code-block mb-3">
                            useradd [-cgd] 用户名
                        </div>
                        <p class="text-gray-600 mb-2"><span class="font-medium">选项：</span></p>
                        <ul class="text-gray-600 text-sm space-y-1">
                            <li>-c: 添加注释</li>
                            <li>-g: 指定用户组</li>
                            <li>-d: 指定HOME目录</li>
                        </ul>
                    </div>
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">passwd - 设置密码</h4>
                        <div class="code-block mb-3">
                            passwd 用户名
                        </div>
                        <p class="text-gray-600">设置或修改用户密码</p>
                    </div>
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">userdel - 删除用户</h4>
                        <div class="code-block mb-3">
                            userdel [-r] 用户名
                        </div>
                        <p class="text-gray-600">-r: 同时删除HOME目录</p>
                    </div>
                </div>
            </div>
            
            <div class="mb-12">
                <h3 class="text-2xl font-semibold mb-6 text-gray-800">用户组管理</h3>
                <div class="grid md:grid-cols-3 gap-6">
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">groupadd - 创建组</h4>
                        <div class="code-block mb-3">
                            groupadd 组名
                        </div>
                        <p class="text-gray-600">创建新用户组</p>
                    </div>
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">groupmod - 修改组</h4>
                        <div class="code-block mb-3">
                            groupmod -n 新组名 原组名
                        </div>
                        <p class="text-gray-600">修改用户组名称</p>
                    </div>
                    <div class="card bg-white p-6 rounded-lg shadow-sm">
                        <h4 class="text-lg font-medium mb-3 text-gray-800">groupdel - 删除组</h4>
                        <div class="code-block mb-3">
                            groupdel 组名
                        </div>
                        <p class="text-gray-600">删除空用户组</p>
                    </div>
                </div>
            </div>
            
            <div>
                <h3 class="text-2xl font-semibold mb-6 text-gray-800">文件权限管理</h3>
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <div class="bg-white p-6 rounded-lg shadow-sm mb-8">
                            <h4 class="text-xl font-medium mb-4 text-gray-800">权限说明</h4>
                            <div class="bg-gray-100 p-4 rounded-lg mb-4">
                                <img src="https://cdn.nlark.com/yuque/0/2022/png/21449790/1654430180260-0dad722e-5cf0-4594-b4be-d194d741a425.png" alt="文件权限示例" class="rounded">
                            </div>
                            <p class="text-gray-600 mb-2">Linux文件权限分为三组：</p>
                            <ul class="text-gray-600 text-sm space-y-1 mb-4">
                                <li>第一组(rwx): 文件拥有者的权限</li>
                                <li>第二组(rwx): 文件所属组的权限</li>
                                <li>第三组(rwx): 其他用户的权限</li>
                            </ul>
                            <p class="text-gray-600 mb-2">权限表示：</p>
                            <ul class="text-gray-600 text-sm space-y-1">
                                <li>r: 读权限(4)</li>
                                <li>w: 写权限(2)</li>
                                <li>x: 执行权限(1)</li>
                            </ul>
                        </div>
                    </div>
                    <div>
                        <div class="bg-white p-6 rounded-lg shadow-sm mb-8">
                            <h4 class="text-xl font-medium mb-4 text-gray-800">chmod - 修改权限</h4>
                            <div class="code-block mb-3">
                                # 数字方式<br>
                                chmod 777 文件|目录<br><br>
                                # 符号方式<br>
                                chmod u=rwx,g=rx,o=r 文件|目录
                            </div>
                            <p class="text-gray-600 mb-2"><span class="font-medium">符号说明：</span></p>
                            <ul class="text-gray-600 text-sm space-y-1 mb-4">
                                <li>u: 用户(user)</li>
                                <li>g: 用户组(group)</li>
                                <li>o: 其他用户(other)</li>
                                <li>a: 所有用户(all)</li>
                                <li>+: 添加权限</li>
                                <li>-: 移除权限</li>
                                <li>=: 设置权限</li>
                            </ul>
                            <div class="code-block mb-3">
                                # 递归修改目录权限<br>
                                chmod -R 755 目录名
                            </div>
                        </div>
                        <div class="bg-white p-6 rounded-lg shadow-sm">
                            <h4 class="text-xl font-medium mb-4 text-gray-800">chown - 修改所有者</h4>
                            <div class="code-block mb-3">
                                # 修改所有者<br>
                                chown 用户名 文件|目录<br><br>
                                # 修改所有者和组<br>
                                chown 用户名:组名 文件|目录<br><br>
                                # 递归修改<br>
                                chown -R 用户名:组名 目录名
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Divider -->
    <div class="section-divider"></div>

    <!-- Deployment Section -->
    <section id="deployment" class="py-20 bg-white">
        <div class="container mx-auto px-6">
            <div class="text-center mb-16">
                <h2 class="text-4xl font-bold mb-4 text-gray-800">软件安装与项目部署</h2>
                <div class="w-20 h-1 bg-blue-600 mx-auto"></div>
            </div>
            
            <div class="mb-12">
                <h3 class="text-2xl font-semibold mb-6 text-gray-800">JDK安装</h3>
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <h4 class="text-xl font-medium mb-4 text-gray-800">1. 下载JDK</h4>
                        <p class="text-gray-600 mb-4">从Oracle官网下载Linux版JDK压缩包：</p>
                        <a href="https://www.oracle.com/java/technologies/javase-jdk8-downloads.html" class="text-blue-600 hover:text-blue-800 font-medium block mb-6">下载JDK</a>
                        
                        <h4 class="text-xl font-medium mb-4 text-gray-800">2. 上传并解压</h4>
                        <div class="code-block mb-3">
                            # 解压到/usr/local目录<br>
                            tar -zxvf jdk-8u241-linux-x64.tar.gz -C /usr/local<br><br>
                            # 重命名目录<br>
                            cd /usr/local<br>
                            mv jdk1.8.0_241 jdk
                        </div>
                    </div>
                    <div>
                        <h4 class="text-xl font-medium mb-4 text-gray-800">3. 配置环境变量</h4>
                        <div class="code-block mb-3">
                            # 编辑环境变量文件<br>
                            vi /etc/profile<br><br>
                            # 添加以下内容<br>
                            export JAVA_HOME=/usr/local/jdk<br>
                            export PATH=$JAVA_HOME/bin:$PATH<br><br>
                            # 使配置生效<br>
                            source /etc/profile
                        </div>
                        <h4 class="text-xl font-medium mb-4 text-gray-800">4. 验证安装</h4>
                        <div class="code-block mb-3">
                            java -version
                        </div>
                        <div class="bg-gray-100 p-3 rounded-lg">
                            <img src="https://cdn.nlark.com/yuque/0/2022/png/21449790/1654430181266-8eccfcc6-181f-44ef-b4f0-faa1d4c73e66.png" alt="Java版本验证" class="rounded">
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="mb-12">
                <h3 class="text-2xl font-semibold mb-6 text-gray-800">MySQL安装</h3>
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <h4 class="text-xl font-medium mb-4 text-gray-800">1. 检查并安装</h4>
                        <div class="code-block mb-3">
                            # 检查是否已安装<br>
                            rpm -qa | grep mysql<br><br>
                            # 下载安装包<br>
                            wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm<br><br>
                            # 安装<br>
                            rpm -ivh mysql-community-release-el7-5.noarch.rpm<br>
                            yum install mysql-server
                        </div>
                        <div class="bg-gray-100 p-3 rounded-lg mb-4">
                            <img src="https://cdn.nlark.com/yuque/0/2022/png/21449790/1654430181830-202b8047-29ce-473c-af7a-f49e257edffe.png" alt="MySQL安装" class="rounded">
                        </div>
                    </div>
                    <div>
                        <h4 class="text-xl font-medium mb-4 text-gray-800">2. 配置MySQL</h4>
                        <div class="code-block mb-3">
                            # 启动MySQL服务<br>
                            systemctl start mysqld.service<br><br>
                            # 设置root密码<br>
                            mysql -u root<br>
                            mysql> use mysql;<br>
                            mysql> update user set password=PASSWORD('密码') where User='root';<br>
                            mysql> flush privileges;<br><br>
                            # 允许远程连接<br>
                            mysql> GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "密码";
                        </div>
                        <p class="text-gray-600">记得将"密码"替换为实际密码</p>
                    </div>
                </div>
            </div>
            
            <div class="mb-12">
                <h3 class="text-2xl font-semibold mb-6 text-gray-800">Tomcat安装</h3>
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <h4 class="text-xl font-medium mb-4 text-gray-800">1. 下载并解压</h4>
                        <div class="code-block mb-3">
                            # 下载Tomcat<br>
                            wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.53/bin/apache-tomcat-8.5.53.tar.gz<br><br>
                            # 解压到/usr/local<br>
                            tar -zxvf apache-tomcat-8.5.53.tar.gz -C /usr/local
                        </div>
                    </div>
                    <div>
                        <h4 class="text-xl font-medium mb-4 text-gray-800">2. 启动Tomcat</h4>
                        <div class="code-block mb-3">
                            # 进入bin目录<br>
                            cd /usr/local/apache-tomcat-8.5.53/bin<br><br>
                            # 启动<br>
                            ./startup.sh<br><br>
                            # 查看日志<br>
                            cd ../logs<br>
                            tail -f catalina.out
                        </div>
                    </div>
                </div>
                <div class="bg-gray-100 p-4 rounded-lg mt-6">
                    <img src="https://cdn.nlark.com/yuque/0/2022/png/21449790/1654430184038-701c0d56-0752-47d0-9bca-f2d28d2c27a6.png" alt="Tomcat启动日志" class="rounded-lg shadow">
                </div>
            </div>
            
            <div>
                <h3 class="text-2xl font-semibold mb-6 text-gray-800">SSM项目部署</h3>
                <div class="bg-blue-50 border-l-4 border-blue-500 p-4 mb-8">
                    <p class="text-blue-700"><i class="fas fa-exclamation-triangle mr-2"></i>部署前请确保：</p>
                    <ul class="text-blue-700 text-sm mt-2 space-y-1">
                        <li>项目在开发环境测试通过</li>
                        <li>数据库连接信息已改为测试环境</li>
                        <li>文件路径和日志路径已适配Linux环境</li>
                    </ul>
                </div>
                
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <h4 class="text-xl font-medium mb-4 text-gray-800">1. 项目打包</h4>
                        <p class="text-gray-600 mb-4">在开发环境中使用Maven打包项目：</p>
                        <div class="code-block mb-3">
                            mvn clean package
                        </div>
                        <p class="text-gray-600">生成war包在target目录下</p>
                    </div>
                    <div>
                        <h4 class="text-xl font-medium mb-4 text-gray-800">2. 上传war包</h4>
                        <p class="text-gray-600 mb-4">将war包上传到Tomcat的webapps目录：</p>
                        <div class="code-block mb-3">
                            # Tomcat会自动解压war包<br>
                            cp 项目.war /usr/local/apache-tomcat-8.5.53/webapps/
                        </div>
                    </div>
                </div>
                
                <div class="mt-8">
                    <h4 class="text-xl font-medium mb-4 text-gray-800">3. 访问项目</h4>
                    <p class="text-gray-600 mb-2">根据项目路径访问部署的应用：</p>
                    <div class="code-block mb-3">
                        http://服务器IP:8080/项目名/
                    </div>
                    <p class="text-gray-600"><span class="font-medium">注意：</span>如果无法访问，请检查防火墙设置和Tomcat日志</p>
                </div>
            </div>
        </div>
    </section>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>
```